<?php
$strTableName="sales_orders";
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];

$strOriginalTableName="sales_orders";

$gstrOrderBy="";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy="order by ".$gstrOrderBy;

$g_orderindexes=array();
$gsqlHead="SELECT id,   order_date,   order_no,   account_id,   buyer_id,   currency_id,   shipment_mode_id";
$gsqlFrom="FROM sales_orders";
$gsqlWhereExpr="";
$gsqlTail="";

include(getabspath("include/sales_orders_settings.php"));

// alias for 'SQLQuery' object
$gQuery = &$queryData_sales_orders;
$eventObj = &$tableEvents["sales_orders"];

$reportCaseSensitiveGroupFields = false;

$gstrSQL = gSQLWhere("");


?>